* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  color: white;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #0a0f1a;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #eb0029;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: orange;
}

.cart-icon {
  font-size: 22px;
  color: white;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Navbar Responsive ===== */
@media (max-width: 1024px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 20px;
    background-color: #0a0f1a;
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 180px;
    text-align: left;
    animation: fadeIn 0.25s ease-in-out;
  }

  .nav a {
    margin: 12px 0;
    font-size: 18px;
  }

  .nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .cart-icon {
    margin-left: 10px;
  }
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.background-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #0a0f1a;
  /* خلفية متناسقة لو الصورة أصغر */
}

.contact-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* تبين الصورة كلها بدون قص */
}

/* للتابلت */
@media (max-width: 1024px) {
  .contact-image {
    max-height: 500px;
  }
}

/* للموبايل */
@media (max-width: 600px) {
  .contact-image {
    max-height: 350px;
  }
}


/* ===== Background Image ===== */
.info-boxes {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 50px;
}

.info-box {
  width: 320px;
  height: 250px;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.dark-mode {
  background-color: #53464641;
  color: #fff;
  border: 1px solid #555;
}


.info-box h3 {
  font-size: 25px;
  margin-bottom: 17px;
  color: #333;
}

.info-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.background {
  background-color: #f8f4ec;
  border-radius: 5px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}


.image {
  width: 40px;
  height: 40px;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 160px 0 190px 0;
  flex-wrap: wrap;
  /* يسمح بالمرونة لما الشاشة تضيق */
}

.image-section {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

.image-section img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.container {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  max-width: 800px;
}


/* ===== Contact Wrapper Fix (Image + Container Responsive) ===== */

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin: 120px auto;
  width: 90%;
  max-width: 1200px;
  flex-wrap: nowrap;
  /* يفضلوا جمب بعض */
}

.image-section {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

.image-section img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  /* تبين الصورة كلها */
}

.container {
  flex: 1 1 50%;
  background: #fff;
  color: #000;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 600px;
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .contact-wrapper {
    flex-wrap: nowrap;
    /* يفضلوا جمب بعض */
    gap: 25px;
    margin: 80px auto;
  }

  .image-section img {
    max-width: 400px;
  }

  .container {
    padding: 25px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .contact-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 95%;
  }

  .image-section,
  .container {
    flex: 1 1 100%;
    max-width: 90%;
  }

  .image-section img {
    width: 100%;
    max-width: 350px;
  }

  .container {
    padding: 20px;
  }
}

h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}

.input-group {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-bottom: 20px;
}

.input-group input,
.input-group select {
  width: 100%;
  height: 55px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  resize: none;
  margin-bottom: 6px;
}

#messagetext {
  margin-bottom: 20px;
  font-size: 14px;
}



button {
  width: 100%;
  padding: 12px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease;
}



footer {
  width: 100vw;
  max-width: 100%;
  background-color: #0a0f1a;
  padding-top: 60px;
  color: white;
  margin: 0;
}


.footer-top-info {
  background: #f36b26;
  padding: 10px 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  max-width: 1200px;
  margin: auto;
  border-radius: 10px;
}

.footer-top-info div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.footer-top-info div i {
  font-size: 22px;
  background: white;
  color: #f36b26;
  padding: 10px;
  border-radius: 50%;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-info,
.footer-links,
.footer-contact {
  width: 30%;
}

.footer-info h3,
.footer-links h3,
.footer-contact h3 {
  font-size: 20px;
  color: #f36b26;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.footer-links ul li a:hover {
  color: orange;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  background: #eb0029;
  color: white;
  width: 100%;
  margin: 0;
}

.footer-bottom a {
  text-align: center;
  padding: 20px 0;
  background: #eb0029;
  color: white;
  width: 100%;
  margin: 0;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

/* ==== Responsive Section ==== */

/* للأجهزة المتوسطة زي التابلت */
@media (max-width: 1024px) {
  .info-boxes {
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 20px;
  }

  .info-box {
    width: 280px;
    height: auto;
    padding: 25px;
  }
}

/* للموبايل */
@media (max-width: 600px) {
  .info-boxes {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 30px 10px;
  }

  .info-box {
    width: 90%;
    height: auto;
    padding: 20px;
  }
}



/* ===== Footer Responsive Vertical ===== */

/* للتابلت */
@media (max-width: 1024px) {
  .footer-main {
    flex-direction: column;
    /* كل الأقسام عمودي */
    text-align: center;
    padding: 40px 20px;
    align-items: center;
    /* المركزية لكل المحتوى */
    gap: 30px;
    /* مسافة بين الأقسام */
  }

  .footer-info,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 0;
    /* مسافة موجودة في gap */
  }

  .footer-top-info {
    flex-direction: column;
    /* أيقونات عمودية */
    align-items: center;
    padding: 20px 30px;
    gap: 25px;
    /* المسافة بين كل div أيقونات */
  }

  .footer-top-info div {
    display: flex;
    flex-direction: column;
    /* أيقونات داخل كل div عمودي */
    align-items: center;
    gap: 20px;
    /* المسافة بين الأيقونات */
  }
}

/* للموبايل */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    align-items: center;
    gap: 25px;
  }

  .footer-info,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-links ul li a {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-top-info {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
  }

  .footer-top-info div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* المسافة بين الأيقونات */
  }

  .footer-bottom {
    font-size: 14px;
    padding: 15px 10px;
  }

  .footer-bottom a {
    display: block;
    padding: 10px 0;
  }
}
